/*
 * 奖金计算（6分）
 */

#include <stdio.h>

#define TEN_THOUSAND 10000

int main() {
	setbuf(stdout, NULL);

	long interest, bonus = 0;

	scanf("%ld", &interest);

	if (interest > 100 * TEN_THOUSAND) {
		bonus += (interest - 100 * TEN_THOUSAND) * 0.01;
		interest = 100 * TEN_THOUSAND;
	}
	if (interest > 60 * TEN_THOUSAND) {
		bonus += (interest - 60 * TEN_THOUSAND) * 0.015;
		interest = 60 * TEN_THOUSAND;
	}
	if (interest > 40 * TEN_THOUSAND) {
		bonus += (interest - 40 * TEN_THOUSAND) * 0.03;
		interest = 40 * TEN_THOUSAND;
	}
	if (interest > 20 * TEN_THOUSAND) {
		bonus += (interest - 20 * TEN_THOUSAND) * 0.05;
		interest = 20 * TEN_THOUSAND;
	}
	if (interest > 10 * TEN_THOUSAND) {
		bonus += (interest - 10 * TEN_THOUSAND) * 0.075;
		interest = 10 * TEN_THOUSAND;
	}
	if (interest <= 10 * TEN_THOUSAND) {
		bonus += (interest - 0 * TEN_THOUSAND) * 0.1;
	}

	printf("bonus=%ld\n", bonus);

	return 0;
}